import { createRouter, createWebHistory } from 'vue-router'
import PersonalCenter from '../views/PersonalCenter.vue'
import Statistics from '../views/Statistics.vue'
import Organization from '../views/Organization.vue'
import Recruitment from '../views/Recruitment.vue'

const routes = [
  { path: '/personal', component: PersonalCenter },
  { path: '/statistics', component: Statistics },
  { path: '/organization', component: Organization },
  { path: '/recruitment', component: Recruitment },
  { path: '/', redirect: '/personal' }
]

export default createRouter({
  history: createWebHistory(),
  routes
})
